package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.Button;
import com.zhijian.medical.entity.vo.request.ButtonSearchVo;
import com.zhijian.medical.entity.vo.response.ButtonVo;

import java.util.List;

public interface ButtonMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Button record);

    int insertSelective(Button record);

    Button selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Button record);

    int updateByPrimaryKey(Button record);

    int count(ButtonSearchVo buttonSearchVo);

    List<ButtonVo> selectList(ButtonSearchVo buttonSearchVo);

    ButtonVo selectVoById(Long id);

    /**
     * 根据菜单id查询列表
     *
     * @param menuId
     * @return
     */
    List<ButtonVo> selectListByMenuId(Long menuId);
}